<?php

class Blog extends Controller
{
	public static function index(Request $request, array $args)
	{} // This method returns no Response, so blog/index.php will be rendered
	
	public static function post_list(Request $request, array $args)
	{
		// A simple string can easily be returned (e.g. for use in ajax calls)
		// by instantiating a Response object with the string as the only
		// argument
		return new Response('the list: '.$args['order_by']);
	}
	
	public static function detail(Request $request, array $args)
	{
		// Note that $args['id'] is defined here because it was a named param
		// in the routes definition
		return TemplateShortcuts::render_template_response('blog/detail.php',
			$args);
	}
}

?>